# -*- coding: utf8 -*-
#将文件中的 `luffycity`修改为 `pythonav`
import os

base_dir = os.path.dirname(os.path.abspath(__file__))
data_file = base_dir + "/" + "ha.conf"
f = open(file=data_file, mode="r+")
for line in f:
    if "luffycity" in line:
        line = line.replace("luffycity", "pythonav")
        f.write(line)
f.close()